<?php

/**
 * @author PeoneEr
 * @method sql()
 */
require_once "core/db.php";

class Mbans1 extends DB {

    private $_query;

    protected function getListBans() {
        /**
         *  получаем список банов
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "SELECT `id`, `mask`, `time_end` FROM `banned_ip`";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
